/**
 * Created by Administrator on 2017/10/26.
 */
/**
 * Created by Administrator on 2017/7/19.
 */
$(function () {


//------------------------------------------------------------------------------------------------------------------------------------
    var pic_path= [
        [[["images/liu/pro_08_01.png","images/liu/pro_08_02.png",
            "images/liu/pro_08_03.png","images/liu/pro_08_04.png",
            "images/liu/pro_08_05.png"],
            ["images/pro_case/pro_01_01.png","images/pro_case/pro_01_02.png",
                "images/pro_case/pro_01_03.png","images/pro_case/pro_01_04.png",
                "images/pro_case/pro_01_05.png"],
            ["images/all/pro_05_01.png","images/all/pro_05_04.png",
                "images/all/pro_05_03.png","images/all/pro_05_02.png",
                "images/all/pro_05_05.png","images/all/pro_05_06.png"],
            ["images/hou/pro_case_01.png","images/hou/pro_case_02.png",
                "images/hou/pro_case_03.png","images/hou/pro_case_04.png",
                "images/hou/pro_case_05.png","images/hou/pro_case_06.png"],
            ["images/all/pro_03_01.png","images/all/pro_03_02.png",
                "images/all/pro_03_03.png","images/all/pro_03_04.png",
                "images/all/pro_03_05.png"],
            ["images/pro_case/pro_02_01.png","images/pro_case/pro_02_02.png",
                "images/pro_case/pro_02_03.png","images/pro_case/pro_02_04.png",
                "images/pro_case/pro_02_05.png"],
            ["images/all/pro_02_01.png","images/all/pro_02_02.png",
                "images/all/pro_02_03.png","images/all/pro_02_04.png",
                "images/all/pro_02_05.png","images/all/pro_02_06.png"],
            ["images/all/pro_01_01.png","images/all/pro_01_02.png",
                "images/all/pro_01_03.png","images/all/pro_01_04.png",
                "images/all/pro_01_05.png"],
            ["images/all/pro_06_01.png","images/all/pro_06_02.png",
                "images/all/pro_06_03.png","images/all/pro_06_04.png",
                "images/all/pro_06_05.png","images/all/pro_06_06.png",
                "images/all/pro_06_07.png"],
            ["images/all/pro_04_01.png","images/all/pro_04_02.png",
                "images/all/pro_04_03.png","images/all/pro_04_04.png",
                "images/all/pro_04_05.png"]],//第一页十个
            [["images/make/pro_01_01.png","images/make/pro_01_02.png",
                "images/make/pro_01_03.png"],
                ["images/make/pro_02_01.png","images/make/pro_02_02.png",
                    "images/make/pro_02_03.png"],
                ["images/make/pro_03_01.png","images/make/pro_03_02.png",
                    "images/make/pro_03_03.png"],
                ["images/make/pro_04_01.png","images/make/pro_04_02.png",
                    "images/make/pro_04_03.png"],
                ["images/make/pro_05_01.png","images/make/pro_05_02.png",
                    "images/make/pro_05_03.png"],
                ["images/make/pro_06_01.png","images/make/pro_06_04.png",
                    "images/make/pro_06_02.png", "images/make/pro_06_03.png"],
                ["images/make/pro_08_01.png","images/make/pro_08_02.png",
                    "images/make/pro_08_03.png"],
                ["images/make/pro_07_01.png","images/make/pro_07_02.png",
                    "images/make/pro_07_03.png"],
                ["images/make/pro_09_01.png","images/make/pro_09_02.png",
                    "images/make/pro_09_03.png"],
                ["images/make/pro_10_01.png","images/make/pro_10_02.png",
                    "images/make/pro_10_03.png"]],//第二页十个
            [["images/stone/pro_01_01.png","images/stone/pro_01_02.png",
                "images/stone/pro_01_03.png","images/stone/pro_01_04.png",
                "images/stone/pro_01_05.png","images/stone/pro_01_06.png"],
                ["images/stone/pro_02_01.png","images/stone/pro_02_02.png",
                    "images/stone/pro_02_03.png","images/stone/pro_02_04.png",
                    "images/stone/pro_02_05.png","images/stone/pro_02_06.png"],
                ["images/stone/pro_03_01.png","images/stone/pro_03_02.png",
                    "images/stone/pro_03_03.png"],
                ["images/stone/pro_04_01.png","images/stone/pro_04_02.png",
                    "images/stone/pro_04_03.png","images/stone/pro_04_04.png",
                    "images/stone/pro_04_05.png","images/stone/pro_04_06.png"],
                ["images/stone/pro_05_01.png","images/stone/pro_05_02.png",
                    "images/stone/pro_05_03.png","images/stone/pro_05_04.png",
                    "images/stone/pro_05_05.png","images/stone/pro_05_06.png"],
                ["images/stone/pro_06_01.png","images/stone/pro_06_02.png",
                    "images/stone/pro_06_03.png","images/stone/pro_06_04.png",
                    "images/stone/pro_06_05.png","images/stone/pro_06_06.png"],
                ["images/shen/pro_case_1.png","images/shen/pro_case_2.png",
                    "images/shen/pro_case_3.png","images/shen/pro_case_4.png",
                    "images/shen/pro_case_5.png","images/shen/pro_case_6.png"],
                ["images/shen/pro_02_01.png","images/shen/pro_02_02.png",
                    "images/shen/pro_02_03.png"],
                ["images/hou/pro_08_01.png","images/hou/pro_08_02.png",
                    "images/hou/pro_08_03.png","images/hou/pro_08_04.png",
                    "images/hou/pro_08_05.png","images/hou/pro_08_06.png"],
                ["images/shen/pro_03_03.png","images/shen/pro_03_01.png",
                    "images/shen/pro_03_02.png","images/shen/pro_03_04.png",
                    "images/shen/pro_03_05.png","images/shen/pro_03_06.png",
                    "images/shen/pro_03_08.png","images/shen/pro_03_07.png"]],//第三页十个
            [["images/shen/pro_04_01.png","images/shen/pro_04_02.png",
                "images/shen/pro_04_03.png","images/shen/pro_04_04.png",
                "images/shen/pro_04_05.png","images/shen/pro_04_06.png"],
                ["images/shen/pro_05_08.png","images/shen/pro_05_01.png",
                    "images/shen/pro_05_02.png","images/shen/pro_05_03.png",
                    "images/shen/pro_05_04.png","images/shen/pro_05_05.png",
                    "images/shen/pro_05_07.png"],
                ["images/shen/pro_06_01.png","images/shen/pro_06_02.png",
                    "images/shen/pro_06_03.png","images/shen/pro_06_04.png",
                    "images/shen/pro_06_05.png","images/shen/pro_06_06.png"],
                ["images/hou/pro_01_01.png","images/hou/pro_01_02.png",
                    "images/hou/pro_01_03.png","images/hou/pro_01_04.png",
                    "images/hou/pro_01_05.png","images/hou/pro_01_06.png"],
                ["images/hou/pro_02_01.png","images/hou/pro_02_02.png",
                    "images/hou/pro_02_03.png","images/hou/pro_02_04.png",
                    "images/hou/pro_02_05.png","images/hou/pro_02_06.png"],
                ["images/hou/pro_03_01.png","images/hou/pro_03_02.png",
                    "images/hou/pro_03_03.png","images/hou/pro_03_04.png",
                    "images/hou/pro_03_05.png","images/hou/pro_03_06.png"],
                ["images/hou/pro_04_01.png","images/hou/pro_04_02.png",
                    "images/hou/pro_04_03.png","images/hou/pro_04_04.png",
                    "images/hou/pro_04_05.png","images/hou/pro_04_06.png"],
                ["images/hou/pro_05_01.png","images/hou/pro_05_02.png",
                    "images/hou/pro_05_03.png","images/hou/pro_05_04.png",
                    "images/hou/pro_05_05.png","images/hou/pro_05_06.png"],
                ["images/hou/pro_06_01.png","images/hou/pro_06_02.png",
                    "images/hou/pro_06_03.png","images/hou/pro_06_04.png",
                    "images/hou/pro_06_05.png","images/hou/pro_06_06.png"],
                ["images/hou/pro_07_01.png","images/hou/pro_07_02.png",
                    "images/hou/pro_07_03.png","images/hou/pro_07_04.png",
                    "images/hou/pro_07_05.png","images/hou/pro_07_06.png"]],//第四个十个
            [["images/liu/pro_01_01.png","images/liu/pro_01_02.png",
                "images/liu/pro_01_03.png","images/liu/pro_01_04.png",
                "images/liu/pro_01_05.png"],
                ["images/liu/pro_02_01.png","images/liu/pro_02_02.png",
                    "images/liu/pro_02_03.png","images/liu/pro_02_04.png",
                    "images/liu/pro_02_05.png"],
                ["images/liu/pro_03_01.png","images/liu/pro_03_02.png",
                    "images/liu/pro_03_03.png","images/liu/pro_03_04.png",
                    "images/liu/pro_03_05.png"],
                ["images/liu/pro_04_01.png","images/liu/pro_04_02.png",
                    "images/liu/pro_04_03.png","images/liu/pro_04_04.png",
                    "images/liu/pro_04_05.png"],
                ["images/liu/pro_05_01.png","images/liu/pro_05_02.png",
                    "images/liu/pro_05_03.png","images/liu/pro_05_04.png",
                    "images/liu/pro_05_05.png"],
                ["images/liu/pro_06_01.png","images/liu/pro_06_02.png",
                    "images/liu/pro_06_03.png","images/liu/pro_06_04.png",
                    "images/liu/pro_06_05.png"],
                ["images/liu/pro_07_01.png","images/liu/pro_07_02.png",
                    "images/liu/pro_07_03.png","images/liu/pro_07_04.png",
                    "images/liu/pro_07_05.png"],
                ["images/stone/pro_08_01.png","images/stone/pro_08_02.png",
                    "images/stone/pro_08_03.png","images/stone/pro_08_04.png",
                    "images/stone/pro_08_05.png","images/stone/pro_08_06.png"]]],
        [[[]]],[[["images/pro_case/pro_01_01.png","images/pro_case/pro_01_02.png",
            "images/pro_case/pro_01_03.png","images/pro_case/pro_01_04.png",
            "images/pro_case/pro_01_05.png"]]],[[[]]],[[[]]],[[[]]],
        [[["images/make/pro_01_01.png","images/make/pro_01_02.png",
            "images/make/pro_01_03.png"],
            ["images/make/pro_02_01.png","images/make/pro_02_02.png",
                "images/make/pro_02_03.png"],
            ["images/make/pro_03_01.png","images/make/pro_03_02.png",
                "images/make/pro_03_03.png"],
            ["images/make/pro_04_01.png","images/make/pro_04_02.png",
                "images/make/pro_04_03.png"],
            ["images/make/pro_05_01.png","images/make/pro_05_02.png",
                "images/make/pro_05_03.png"],
            ["images/make/pro_06_01.png","images/make/pro_06_04.png",
                "images/make/pro_06_02.png", "images/make/pro_06_03.png"],
            ["images/make/pro_08_01.png","images/make/pro_08_02.png",
                "images/make/pro_08_03.png"],
            ["images/make/pro_07_01.png","images/make/pro_07_02.png",
                "images/make/pro_07_03.png"],
            ["images/make/pro_09_01.png","images/make/pro_09_02.png",
                "images/make/pro_09_03.png"],
            ["images/make/pro_10_01.png","images/make/pro_10_02.png",
                "images/make/pro_10_03.png"]],//第二页十个
            [["images/stone/pro_01_01.png","images/stone/pro_01_02.png",
                "images/stone/pro_01_03.png","images/stone/pro_01_04.png",
                "images/stone/pro_01_05.png","images/stone/pro_01_06.png"],
                ["images/stone/pro_02_01.png","images/stone/pro_02_02.png",
                    "images/stone/pro_02_03.png","images/stone/pro_02_04.png",
                    "images/stone/pro_02_05.png","images/stone/pro_02_06.png"],
                ["images/stone/pro_03_01.png","images/stone/pro_03_02.png",
                    "images/stone/pro_03_03.png"],
                ["images/stone/pro_04_01.png","images/stone/pro_04_02.png",
                    "images/stone/pro_04_03.png","images/stone/pro_04_04.png",
                    "images/stone/pro_04_05.png","images/stone/pro_04_06.png"],
                ["images/stone/pro_05_01.png","images/stone/pro_05_02.png",
                    "images/stone/pro_05_03.png","images/stone/pro_05_04.png",
                    "images/stone/pro_05_05.png","images/stone/pro_05_06.png"],
                ["images/stone/pro_06_01.png","images/stone/pro_06_02.png",
                    "images/stone/pro_06_03.png","images/stone/pro_06_04.png",
                    "images/stone/pro_06_05.png","images/stone/pro_06_06.png"],
                ["images/shen/pro_case_1.png","images/shen/pro_case_2.png",
                    "images/shen/pro_case_3.png","images/shen/pro_case_4.png",
                    "images/shen/pro_case_5.png","images/shen/pro_case_6.png"],
                ["images/shen/pro_02_01.png","images/shen/pro_02_02.png",
                    "images/shen/pro_02_03.png"],
                ["images/hou/pro_08_01.png","images/hou/pro_08_02.png",
                    "images/hou/pro_08_03.png","images/hou/pro_08_04.png",
                    "images/hou/pro_08_05.png","images/hou/pro_08_06.png"],
                ["images/shen/pro_03_03.png","images/shen/pro_03_01.png",
                    "images/shen/pro_03_02.png","images/shen/pro_03_04.png",
                    "images/shen/pro_03_05.png","images/shen/pro_03_06.png",
                    "images/shen/pro_03_08.png","images/shen/pro_03_07.png"]],//第三页十个
            [["images/shen/pro_04_01.png","images/shen/pro_04_02.png",
                "images/shen/pro_04_03.png","images/shen/pro_04_04.png",
                "images/shen/pro_04_05.png","images/shen/pro_04_06.png"],
                ["images/shen/pro_05_08.png","images/shen/pro_05_01.png",
                    "images/shen/pro_05_02.png","images/shen/pro_05_03.png",
                    "images/shen/pro_05_04.png","images/shen/pro_05_05.png",
                    "images/shen/pro_05_07.png"],
                ["images/shen/pro_06_01.png","images/shen/pro_06_02.png",
                    "images/shen/pro_06_03.png","images/shen/pro_06_04.png",
                    "images/shen/pro_06_05.png","images/shen/pro_06_06.png"],
                ["images/hou/pro_01_01.png","images/hou/pro_01_02.png",
                    "images/hou/pro_01_03.png","images/hou/pro_01_04.png",
                    "images/hou/pro_01_05.png","images/hou/pro_01_06.png"],
                ["images/hou/pro_02_01.png","images/hou/pro_02_02.png",
                    "images/hou/pro_02_03.png","images/hou/pro_02_04.png",
                    "images/hou/pro_02_05.png","images/hou/pro_02_06.png"],
                ["images/hou/pro_03_01.png","images/hou/pro_03_02.png",
                    "images/hou/pro_03_03.png","images/hou/pro_03_04.png",
                    "images/hou/pro_03_05.png","images/hou/pro_03_06.png"],
                ["images/hou/pro_04_01.png","images/hou/pro_04_02.png",
                    "images/hou/pro_04_03.png","images/hou/pro_04_04.png",
                    "images/hou/pro_04_05.png","images/hou/pro_04_06.png"],
                ["images/hou/pro_05_01.png","images/hou/pro_05_02.png",
                    "images/hou/pro_05_03.png","images/hou/pro_05_04.png",
                    "images/hou/pro_05_05.png","images/hou/pro_05_06.png"],
                ["images/hou/pro_06_01.png","images/hou/pro_06_02.png",
                    "images/hou/pro_06_03.png","images/hou/pro_06_04.png",
                    "images/hou/pro_06_05.png","images/hou/pro_06_06.png"],
                ["images/hou/pro_07_01.png","images/hou/pro_07_02.png",
                    "images/hou/pro_07_03.png","images/hou/pro_07_04.png",
                    "images/hou/pro_07_05.png","images/hou/pro_07_06.png"]],//第四个十个
            [["images/liu/pro_01_01.png","images/liu/pro_01_02.png",
                "images/liu/pro_01_03.png","images/liu/pro_01_04.png",
                "images/liu/pro_01_05.png"],
                ["images/liu/pro_02_01.png","images/liu/pro_02_02.png",
                    "images/liu/pro_02_03.png","images/liu/pro_02_04.png",
                    "images/liu/pro_02_05.png"],
                ["images/liu/pro_03_01.png","images/liu/pro_03_02.png",
                    "images/liu/pro_03_03.png","images/liu/pro_03_04.png",
                    "images/liu/pro_03_05.png"],
                ["images/liu/pro_04_01.png","images/liu/pro_04_02.png",
                    "images/liu/pro_04_03.png","images/liu/pro_04_04.png",
                    "images/liu/pro_04_05.png"],
                ["images/liu/pro_05_01.png","images/liu/pro_05_02.png",
                    "images/liu/pro_05_03.png","images/liu/pro_05_04.png",
                    "images/liu/pro_05_05.png"],
                ["images/liu/pro_06_01.png","images/liu/pro_06_02.png",
                    "images/liu/pro_06_03.png","images/liu/pro_06_04.png",
                    "images/liu/pro_06_05.png"],
                ["images/liu/pro_07_01.png","images/liu/pro_07_02.png",
                    "images/liu/pro_07_03.png","images/liu/pro_07_04.png",
                    "images/liu/pro_07_05.png"],
                ["images/stone/pro_08_01.png","images/stone/pro_08_02.png",
                    "images/stone/pro_08_03.png","images/stone/pro_08_04.png",
                    "images/stone/pro_08_05.png","images/stone/pro_08_06.png"]]]];

    var color_path=[
        [[["rgb(235,92,78)","rgb(253,88,87)",
            "rgb(229,101,100)","rgb(235,92,78)",
            "rgb(253,88,87)"],
            ["rgb(182,209,250)","rgb(195,190,240)",
                "rgb(204,168,233)","rgb(182,209,250)",
                "rgb(195,190,240)"],
            ["rgb(33,33,33)","rgb(50,50,50)",
                "rgb(73,73,73)","rgb(33,33,33)",
                "rgb(50,50,50)",'rgb(73,73,73)'],
            ["rgb(80,98,122)","rgb(76,108,146)",
                "rgb(73,100,130)","rgb(80,98,122)",
                "rgb(76,108,146)","rgb(73,100,130)"],
            ["rgb(31,171,137)","rgb(98,210,162)",
                "rgb(119,225,167)","rgb(31,171,137)",
                "rgb(98,210,162)"],
            ["rgb(188,188,188)","rgb(198,197,197)",
                "rgb(172,172,172)","rgb(188,188,188)",
                "rgb(198,197,197)"],
            ["rgb(103,169,171)","rgb(121,168,169)",
                "rgb(31,78,95)","rgb(103,169,171)",
                "rgb(121,168,169)","rgb(31,78,95)"],
            ["rgb(72,72,72)","rgb(36,36,36)",
                "rgb(10,10,10)","rgb(72,72,72)","rgb(36,36,36)"],
            ["rgb(57,57,57)","rgb(39,39,39)",
                "rgb(15,15,15)","rgb(57,57,57)",
                "rgb(39,39,39)","rgb(15,15,15)",
                "rgb(57,57,57)"],
            ["rgb(111,0,6)","rgb(80,7,13)",
                "rgb(139,37,5)","rgb(111,0,6)",
                "rgb(80,7,13)"]],//第一页十个
            [["rgb(115,115,115)","rgb(97,97,97)",
                "rgb(83,83,83)"],
                ["rgb(20,14,28)","rgb(21,12,29)","rgb(22,0,11)"],
                ["rgb(100,176,224)","rgb(42,145,191)","rgb(43,153,188)"],
                ["rgb(0,130,188)","rgb(1,121,174)","rgb(0,112,162)"],
                ["rgb(206,164,140)","rgb(237,187,192)","rgb(228,190,149)"],
                ["rgb(1,156,138)","rgb(9,131,102)","rgb(0,137,121)","rgb(0,125,111)"],
                ["rgb(74,163,243)","rgb(45,156,246)","rgb(23,144,238)"],
                ["rgb(40,119,210)","rgb(52,162,225)","rgb(14,168,228)"],
                ["rgb(129,129,129)","rgb(100,100,100)","rgb(80,80,80)"],
                ["rgb(24,28,34)","rgb(10,11,13)","rgb(24,24,24)"]],//第二页十个
            [["rgb(232,147,166)","rgb(253,111,152)","rgb(235,107,142)",
                "rgb(232,147,166)","rgb(253,111,152)","rgb(235,107,142)"],
                ["rgb(167,215,238)","rgb(253,189,220)","rgb(255,166,157)",
                    "rgb(167,215,238)","rgb(253,189,220)","rgb(255,166,157)"],
                ["rgb(189,221,184)","rgb(120,182,116)","rgb(83,184,76)"],
                ["rgb(148,209,249)","rgb(158,223,254)","rgb(119,216,250)",
                    "rgb(148,209,249)","rgb(158,223,254)","rgb(119,216,250)"],
                ["rgb(255,185,203)","rgb(255,148,169)","rgb(254,173,193)",
                    "rgb(255,185,203)","rgb(255,148,169)","rgb(254,173,193)"],
                ["rgb(255,161,0)","rgb(255,184,64)","rgb(255,203,115)",
                    "rgb(255,161,0)","rgb(255,184,64)","rgb(255,203,115)"],
                ["rgb(122,180,130)","rgb(112,168,121)","rgb(104,155,112)",
                    "rgb(122,180,130)","rgb(112,168,121)","rgb(104,155,112)"],
                ["rgb(37,120,181)","rgb(0,107,185)","rgb(0,96,165)"],
                ["rgb(57,58,80)","rgb(73,74,102)","rgb(68,69,89)",
                    "rgb(57,58,80)","rgb(73,74,102)","rgb(68,69,89)"],
                ["rgb(23,32,37)","rgb(20,37,47)","rgb(42,43,45)",
                    "rgb(23,32,37)","rgb(20,37,47)","rgb(42,43,45)","rgb(23,32,37)","rgb(20,37,47)"]],//第三页十个
            [["rgb(2,181,206)","rgb(2,189,196)","rgb(0,194,197)","rgb(2,181,206)","rgb(2,189,196)","rgb(0,194,197)"],
                ["rgb(41,46,75)","rgb(26,74,146)","rgb(1,57,118)","rgb(41,46,75)","rgb(26,74,146)","rgb(1,57,118)","rgb(41,46,75)"],
                ["rgb(41,46,75)","rgb(47,51,77)","rgb(50,54,82)","rgb(41,46,75)","rgb(47,51,77)","rgb(50,54,82)"],
                ["rgb(235,179,190)","rgb(228,166,179)","rgb(228,138,157)","rgb(235,179,190)","rgb(228,166,179)","rgb(228,138,157)"],
                ["rgb(197,195,198)","rgb(157,156,171)","rgb(132,132,132)","rgb(197,195,198)","rgb(157,156,171)","rgb(132,132,132)"],
                ["rgb(163,185,205)","rgb(124,157,188)","rgb(57,103,127)","rgb(163,185,205)","rgb(124,157,188)","rgb(57,103,127)"],
                ["rgb(1,175,148)","rgb(0,152,153)","rgb(0,135,144)","rgb(1,175,148)","rgb(0,152,153)","rgb(0,135,144)"],
                ["rgb(79,127,141)","rgb(101,146,154)","rgb(131,173,176)","rgb(79,127,141)","rgb(101,146,154)","rgb(131,173,176)"],
                ["rgb(214,185,154)","rgb(218,185,140)","rgb(218,189,155)","rgb(214,185,154)","rgb(218,185,140)","rgb(218,189,155)"],
                ["rgb(28,83,122)","rgb(39,88,121)","rgb(25,74,107)","rgb(28,83,122)","rgb(39,88,121)","rgb(25,74,107)"]],//第四个十个
            [["rgb(189,221,184)","rgb(160,210,197)","rgb(186,216,223)","rgb(189,221,184)","rgb(160,210,197)"],
                ["rgb(135,221,215)","rgb(124,206,196)","rgb(120,211,203)","rgb(135,221,215)","rgb(124,206,196)"],
                ["rgb(3,164,173)","rgb(10,172,175)","rgb(165,235,235)","rgb(3,164,173)","rgb(10,172,175)"],
                ["rgb(240,183,152)","rgb(233,127,128)","rgb(239,107,107)","rgb(240,183,152)","rgb(233,127,128)"],
                ["rgb(34,40,49)","rgb(57,62,70)","rgb(43,44,46)","rgb(34,40,49)","rgb(57,62,70)"],
                ["rgb(87,205,215)","rgb(136,222,231)","rgb(113,201,206)","rgb(87,205,215)","rgb(136,222,231)"],
                ["rgb(62,132,168)","rgb(70,205,208)","rgb(127,232,199)","rgb(62,132,168)","rgb(70,205,208)"],
                ["rgb(255,185,203)","rgb(253,189,219)","rgb(254,173,193)","rgb(255,185,203)","rgb(253,189,219)","rgb(254,173,193)"]]],
        [[[]]],[[["rgb(182,209,250)","rgb(195,190,240)",
            "rgb(204,168,233)","rgb(182,209,250)",
            "rgb(195,190,240)"]]],[[[]]],[[[]]],[[[]]],
        [[["rgb(115,115,115)","rgb(97,97,97)",
            "rgb(83,83,83)"],
            ["rgb(20,14,28)","rgb(21,12,29)","rgb(22,0,11)"],
            ["rgb(100,176,224)","rgb(42,145,191)","rgb(43,153,188)"],
            ["rgb(0,130,188)","rgb(1,121,174)","rgb(0,112,162)"],
            ["rgb(206,164,140)","rgb(237,187,192)","rgb(228,190,149)"],
            ["rgb(1,156,138)","rgb(9,131,102)","rgb(0,137,121)","rgb(0,125,111)"],
            ["rgb(74,163,243)","rgb(45,156,246)","rgb(23,144,238)"],
            ["rgb(40,119,210)","rgb(52,162,225)","rgb(14,168,228)"],
            ["rgb(129,129,129)","rgb(100,100,100)","rgb(80,80,80)"],
            ["rgb(24,28,34)","rgb(10,11,13)","rgb(24,24,24)"]],//第二页十个
            [["rgb(232,147,166)","rgb(253,111,152)","rgb(235,107,142)",
                "rgb(232,147,166)","rgb(253,111,152)","rgb(235,107,142)"],
                ["rgb(167,215,238)","rgb(253,189,220)","rgb(255,166,157)",
                    "rgb(167,215,238)","rgb(253,189,220)","rgb(255,166,157)"],
                ["rgb(189,221,184)","rgb(120,182,116)","rgb(83,184,76)"],
                ["rgb(148,209,249)","rgb(158,223,254)","rgb(119,216,250)",
                    "rgb(148,209,249)","rgb(158,223,254)","rgb(119,216,250)"],
                ["rgb(255,185,203)","rgb(255,148,169)","rgb(254,173,193)",
                    "rgb(255,185,203)","rgb(255,148,169)","rgb(254,173,193)"],
                ["rgb(255,161,0)","rgb(255,184,64)","rgb(255,203,115)",
                    "rgb(255,161,0)","rgb(255,184,64)","rgb(255,203,115)"],
                ["rgb(122,180,130)","rgb(112,168,121)","rgb(104,155,112)",
                    "rgb(122,180,130)","rgb(112,168,121)","rgb(104,155,112)"],
                ["rgb(37,120,181)","rgb(0,107,185)","rgb(0,96,165)"],
                ["rgb(57,58,80)","rgb(73,74,102)","rgb(68,69,89)",
                    "rgb(57,58,80)","rgb(73,74,102)","rgb(68,69,89)"],
                ["rgb(23,32,37)","rgb(20,37,47)","rgb(42,43,45)",
                    "rgb(23,32,37)","rgb(20,37,47)","rgb(42,43,45)","rgb(23,32,37)","rgb(20,37,47)"]],//第三页十个
            [["rgb(2,181,206)","rgb(2,189,196)","rgb(0,194,197)","rgb(2,181,206)","rgb(2,189,196)","rgb(0,194,197)"],
                ["rgb(41,46,75)","rgb(26,74,146)","rgb(1,57,118)","rgb(41,46,75)","rgb(26,74,146)","rgb(1,57,118)","rgb(41,46,75)"],
                ["rgb(41,46,75)","rgb(47,51,77)","rgb(50,54,82)","rgb(41,46,75)","rgb(47,51,77)","rgb(50,54,82)"],
                ["rgb(235,179,190)","rgb(228,166,179)","rgb(228,138,157)","rgb(235,179,190)","rgb(228,166,179)","rgb(228,138,157)"],
                ["rgb(197,195,198)","rgb(157,156,171)","rgb(132,132,132)","rgb(197,195,198)","rgb(157,156,171)","rgb(132,132,132)"],
                ["rgb(163,185,205)","rgb(124,157,188)","rgb(57,103,127)","rgb(163,185,205)","rgb(124,157,188)","rgb(57,103,127)"],
                ["rgb(1,175,148)","rgb(0,152,153)","rgb(0,135,144)","rgb(1,175,148)","rgb(0,152,153)","rgb(0,135,144)"],
                ["rgb(79,127,141)","rgb(101,146,154)","rgb(131,173,176)","rgb(79,127,141)","rgb(101,146,154)","rgb(131,173,176)"],
                ["rgb(214,185,154)","rgb(218,185,140)","rgb(218,189,155)","rgb(214,185,154)","rgb(218,185,140)","rgb(218,189,155)"],
                ["rgb(28,83,122)","rgb(39,88,121)","rgb(25,74,107)","rgb(28,83,122)","rgb(39,88,121)","rgb(25,74,107)"]],//第四个十个
            [["rgb(189,221,184)","rgb(160,210,197)","rgb(186,216,223)","rgb(189,221,184)","rgb(160,210,197)"],
                ["rgb(135,221,215)","rgb(124,206,196)","rgb(120,211,203)","rgb(135,221,215)","rgb(124,206,196)"],
                ["rgb(3,164,173)","rgb(10,172,175)","rgb(165,235,235)","rgb(3,164,173)","rgb(10,172,175)"],
                ["rgb(240,183,152)","rgb(233,127,128)","rgb(239,107,107)","rgb(240,183,152)","rgb(233,127,128)"],
                ["rgb(34,40,49)","rgb(57,62,70)","rgb(43,44,46)","rgb(34,40,49)","rgb(57,62,70)"],
                ["rgb(87,205,215)","rgb(136,222,231)","rgb(113,201,206)","rgb(87,205,215)","rgb(136,222,231)"],
                ["rgb(62,132,168)","rgb(70,205,208)","rgb(127,232,199)","rgb(62,132,168)","rgb(70,205,208)"],
                ["rgb(255,185,203)","rgb(253,189,219)","rgb(254,173,193)","rgb(255,185,203)","rgb(253,189,219)","rgb(254,173,193)"]]]];


    var title = [
        [[["锁屏","桌面&图标","拨号","短信","短信"],
            ["锁屏","桌面&图标","拨号","短信","短信"],
            ["锁屏","锁屏第三状态","桌面&图标","第三方","拨号","联系人"],
            ["锁屏","桌面&图标","拨号","短信","联系人","其他"],
            ["锁屏","桌面&图标","第三方","拨号","联系人"],
            ["锁屏","桌面&图标","拨号","短信","短信"],
            ["锁屏","桌面&图标","第三方","拨号","短信","联系人"],
            ["锁屏","桌面&图标","第三方","拨号","短信"],
            ["锁屏","桌面&图标","第三方","拨号","短信","联系人","其他"],
            ["锁屏","桌面&图标","拨号","短信","联系人"]],//第一页十个
            [["锁屏","桌面&图标","第三方"],["锁屏","桌面&图标","第三方"],
                ["锁屏","桌面&图标","第三方"], ["锁屏","桌面&图标","第三方"],["锁屏","桌面&图标","第三方"],
                ["锁屏","锁屏状态","桌面&图标","第三方"],
                ["锁屏","桌面&图标","第三方"],["锁屏","桌面&图标","第三方"],
                ["锁屏","桌面&图标","第三方"],["锁屏","桌面&图标","第三方"]], //第二页十个
            [["锁屏","桌面&图标","拨号","短信","联系人","其他"],["锁屏","桌面&图标","拨号","短信","联系人","其他"],
                ["锁屏","桌面&图标","第三方"],["锁屏","桌面&图标","拨号","短信","联系人","其他"],
                ["锁屏","桌面&图标","拨号","短信","联系人","其他"],["锁屏","桌面&图标","拨号","短信","联系人","其他"],
                ["锁屏","桌面&图标","第三方","拨号","短信","联系人"],["锁屏","桌面&图标","第三方"],
                ["锁屏","桌面&图标","拨号","短信","联系人","其他"],
                ["锁屏","锁屏状态","锁屏侧边栏","桌面&图标","第三方","拨号","短信","联系人"]],//第三页十个
            [["锁屏","桌面&图标","第三方","拨号","短信","联系人"],["锁屏","锁屏状态","桌面&图标","第三方","拨号","短信","联系人"],
                ["锁屏","桌面&图标","第三方","拨号","短信","联系人"], ["锁屏","桌面&图标","拨号","短信","联系人","其他"],
                ["锁屏","桌面&图标","拨号","短信","联系人","其他"],["锁屏","桌面&图标","拨号","短信","联系人","其他"],
                ["锁屏","桌面&图标","拨号","短信","联系人","其他"], ["锁屏","桌面&图标","拨号","短信","联系人","其他"],
                ["锁屏","桌面&图标","拨号","短信","联系人","其他"],["锁屏","桌面&图标","拨号","短信","联系人","其他"]],//第四个十个
            [["锁屏","桌面&图标","拨号","短信","短信"],["锁屏","桌面&图标","拨号","短信","短信"],
                ["锁屏","桌面&图标","拨号","短信","短信"],["锁屏","桌面&图标","拨号","短信","短信"],
                ["锁屏","桌面&图标","拨号","短信","短信"],["锁屏","桌面&图标","拨号","短信","短信"],
                ["锁屏","桌面&图标","拨号","短信","短信"],["锁屏","桌面&图标","拨号","短信","联系人","其他"]]],
        [[[]]],[[["锁屏","桌面&图标","拨号","短信","短信"]]],[[[]]],[[[]]],[[[]]],
        [[["锁屏","桌面&图标","第三方"],["锁屏","桌面&图标","第三方"],
            ["锁屏","桌面&图标","第三方"], ["锁屏","桌面&图标","第三方"],["锁屏","桌面&图标","第三方"],
            ["锁屏","锁屏状态","桌面&图标","第三方"],
            ["锁屏","桌面&图标","第三方"],["锁屏","桌面&图标","第三方"],
            ["锁屏","桌面&图标","第三方"],["锁屏","桌面&图标","第三方"]], //第二页十个
            [["锁屏","桌面&图标","拨号","短信","联系人","其他"],["锁屏","桌面&图标","拨号","短信","联系人","其他"],
                ["锁屏","桌面&图标","第三方"],["锁屏","桌面&图标","拨号","短信","联系人","其他"],
                ["锁屏","桌面&图标","拨号","短信","联系人","其他"],["锁屏","桌面&图标","拨号","短信","联系人","其他"],
                ["锁屏","桌面&图标","第三方","拨号","短信","联系人"],["锁屏","桌面&图标","第三方"],
                ["锁屏","桌面&图标","拨号","短信","联系人","其他"],
                ["锁屏","锁屏状态","锁屏侧边栏","桌面&图标","第三方","拨号","短信","联系人"]],//第三页十个
            [["锁屏","桌面&图标","第三方","拨号","短信","联系人"],["锁屏","锁屏状态","桌面&图标","第三方","拨号","短信","联系人"],
                ["锁屏","桌面&图标","第三方","拨号","短信","联系人"], ["锁屏","桌面&图标","拨号","短信","联系人","其他"],
                ["锁屏","桌面&图标","拨号","短信","联系人","其他"],["锁屏","桌面&图标","拨号","短信","联系人","其他"],
                ["锁屏","桌面&图标","拨号","短信","联系人","其他"], ["锁屏","桌面&图标","拨号","短信","联系人","其他"],
                ["锁屏","桌面&图标","拨号","短信","联系人","其他"],["锁屏","桌面&图标","拨号","短信","联系人","其他"]],//第四个十个
            [["锁屏","桌面&图标","拨号","短信","短信"],["锁屏","桌面&图标","拨号","短信","短信"],
                ["锁屏","桌面&图标","拨号","短信","短信"],["锁屏","桌面&图标","拨号","短信","短信"],
                ["锁屏","桌面&图标","拨号","短信","短信"],["锁屏","桌面&图标","拨号","短信","短信"],
                ["锁屏","桌面&图标","拨号","短信","短信"],["锁屏","桌面&图标","拨号","短信","联系人","其他"]]]];

    var small_title = [[[["UNLOCK SCREEN","DESKTOP ICONS","DIAL PLATE","MESSAGE","MESSAGE"],
        ["UNLOCK SCREEN","DESKTOP ICONS","DIAL PLATE","MESSAGE","MESSAGE"],
        ["UNLOCK SCREEN","UNLOCK SCREEN","DESKTOP ICONS","OTHER","DIAL PLATE","CONTACT"],
        ["UNLOCK SCREEN","DESKTOP ICONS","DIAL PLATE","MESSAGE","CONTACT","OTHER"],
        ["UNLOCK SCREEN","DESKTOP ICONS","OTHER","DIAL PLATE","CONTACT"],
        ["UNLOCK SCREEN","DESKTOP ICONS","DIAL PLATE","MESSAGE","MESSAGE"],
        ["UNLOCK SCREEN","DESKTOP ICONS","OTHER","DIAL PLATE","MESSAGE","CONTACT"],
        ["UNLOCK SCREEN","DESKTOP ICONS","OTHER","DIAL PLATE","MESSAGE"],
        ["UNLOCK SCREEN","DESKTOP ICONS","OTHER","DIAL PLATE","MESSAGE","CONTACT","OTHER"],
        ["UNLOCK SCREEN","DESKTOP ICONS","DIAL PLATE","MESSAGE","CONTACT"]],//第一页十个
        [["UNLOCK SCREEN","DESKTOP ICONS","OTHER"],["UNLOCK SCREEN","DESKTOP ICONS","OTHER"],["UNLOCK SCREEN","DESKTOP ICONS","OTHER"],
            ["UNLOCK SCREEN","DESKTOP ICONS","OTHER"],["UNLOCK SCREEN","DESKTOP ICONS","OTHER"],
            ["UNLOCK SCREEN","UNLOCK SCREEN","DESKTOP ICONS","OTHER"],
            ["UNLOCK SCREEN","DESKTOP ICONS","OTHER"],["UNLOCK SCREEN","DESKTOP ICONS","OTHER"],
            ["UNLOCK SCREEN","DESKTOP ICONS","OTHER"],["UNLOCK SCREEN","DESKTOP ICONS","OTHER"]],//第二页十个
        [["UNLOCK SCREEN","DESKTOP ICONS","DIAL PLATE","MESSAGE","CONTACT","OTHER"],
            ["UNLOCK SCREEN","DESKTOP ICONS","DIAL PLATE","MESSAGE","CONTACT","OTHER"],
            ["UNLOCK SCREEN","DESKTOP ICONS","OTHER"],["UNLOCK SCREEN","DESKTOP ICONS","DIAL PLATE","MESSAGE","CONTACT","OTHER"],
            ["UNLOCK SCREEN","DESKTOP ICONS","DIAL PLATE","MESSAGE","CONTACT","OTHER"],
            ["UNLOCK SCREEN","DESKTOP ICONS","DIAL PLATE","MESSAGE","CONTACT","OTHER"],
            ["UNLOCK SCREEN","DESKTOP ICONS","OTHER","DIAL PLATE","MESSAGE","CONTACT"],["UNLOCK SCREEN","DESKTOP ICONS","OTHER"],
            ["UNLOCK SCREEN","DESKTOP ICONS","DIAL PLATE","MESSAGE","CONTACT","OTHER"],
            ["UNLOCK SCREEN","UNLOCK SCREEN","RIGHT STATUS","DESKTOP ICONS","OTHER","DIAL PLATE","MESSAGE","CONTACT"]],//第三页十个
        [["UNLOCK SCREEN","DESKTOP ICONS","OTHER","DIAL PLATE","MESSAGE","CONTACT"],
            ["UNLOCK SCREEN","UNLOCK SCREEN","DESKTOP ICONS","OTHER","DIAL PLATE","MESSAGE","CONTACT"],
            ["UNLOCK SCREEN","DESKTOP ICONS","OTHER","DIAL PLATE","MESSAGE","CONTACT"],
            ["UNLOCK SCREEN","DESKTOP ICONS","DIAL PLATE","MESSAGE","CONTACT","OTHER"],
            ["UNLOCK SCREEN","DESKTOP ICONS","DIAL PLATE","MESSAGE","CONTACT","OTHER"],
            ["UNLOCK SCREEN","DESKTOP ICONS","DIAL PLATE","MESSAGE","CONTACT","OTHER"],
            ["UNLOCK SCREEN","DESKTOP ICONS","DIAL PLATE","MESSAGE","CONTACT","OTHER"],
            ["UNLOCK SCREEN","DESKTOP ICONS","DIAL PLATE","MESSAGE","CONTACT","OTHER"],
            ["UNLOCK SCREEN","DESKTOP ICONS","DIAL PLATE","MESSAGE","CONTACT","OTHER"],
            ["UNLOCK SCREEN","DESKTOP ICONS","DIAL PLATE","MESSAGE","CONTACT","OTHER"]],//第四个十个
        [["UNLOCK SCREEN","DESKTOP ICONS","DIAL PLATE","MESSAGE","MESSAGE"],
            ["UNLOCK SCREEN","DESKTOP ICONS","DIAL PLATE","MESSAGE","MESSAGE"],
            ["UNLOCK SCREEN","DESKTOP ICONS","DIAL PLATE","MESSAGE","MESSAGE"],
            ["UNLOCK SCREEN","DESKTOP ICONS","DIAL PLATE","MESSAGE","MESSAGE"],
            ["UNLOCK SCREEN","DESKTOP ICONS","DIAL PLATE","MESSAGE","MESSAGE"],["UNLOCK SCREEN","DESKTOP ICONS","DIAL PLATE","MESSAGE","MESSAGE"],
            ["UNLOCK SCREEN","DESKTOP ICONS","DIAL PLATE","MESSAGE","MESSAGE"],["UNLOCK SCREEN","DESKTOP ICONS","DIAL PLATE","MESSAGE","CONTACT","OTHER"]]],
        [[[]]],[[["UNLOCK SCREEN","DESKTOP ICONS","DIAL PLATE","MESSAGE","MESSAGE"]]],[[[]]],[[[]]],[[[]]],
        [[["UNLOCK SCREEN","DESKTOP ICONS","OTHER"],["UNLOCK SCREEN","DESKTOP ICONS","OTHER"],["UNLOCK SCREEN","DESKTOP ICONS","OTHER"],
            ["UNLOCK SCREEN","DESKTOP ICONS","OTHER"],["UNLOCK SCREEN","DESKTOP ICONS","OTHER"],
            ["UNLOCK SCREEN","UNLOCK SCREEN","DESKTOP ICONS","OTHER"],
            ["UNLOCK SCREEN","DESKTOP ICONS","OTHER"],["UNLOCK SCREEN","DESKTOP ICONS","OTHER"],
            ["UNLOCK SCREEN","DESKTOP ICONS","OTHER"],["UNLOCK SCREEN","DESKTOP ICONS","OTHER"]],//第二页十个
            [["UNLOCK SCREEN","DESKTOP ICONS","DIAL PLATE","MESSAGE","CONTACT","OTHER"],
                ["UNLOCK SCREEN","DESKTOP ICONS","DIAL PLATE","MESSAGE","CONTACT","OTHER"],
                ["UNLOCK SCREEN","DESKTOP ICONS","OTHER"],["UNLOCK SCREEN","DESKTOP ICONS","DIAL PLATE","MESSAGE","CONTACT","OTHER"],
                ["UNLOCK SCREEN","DESKTOP ICONS","DIAL PLATE","MESSAGE","CONTACT","OTHER"],
                ["UNLOCK SCREEN","DESKTOP ICONS","DIAL PLATE","MESSAGE","CONTACT","OTHER"],
                ["UNLOCK SCREEN","DESKTOP ICONS","OTHER","DIAL PLATE","MESSAGE","CONTACT"],["UNLOCK SCREEN","DESKTOP ICONS","OTHER"],
                ["UNLOCK SCREEN","DESKTOP ICONS","DIAL PLATE","MESSAGE","CONTACT","OTHER"],
                ["UNLOCK SCREEN","UNLOCK SCREEN","RIGHT STATUS","DESKTOP ICONS","OTHER","DIAL PLATE","MESSAGE","CONTACT"]],//第三页十个
            [["UNLOCK SCREEN","DESKTOP ICONS","OTHER","DIAL PLATE","MESSAGE","CONTACT"],
                ["UNLOCK SCREEN","UNLOCK SCREEN","DESKTOP ICONS","OTHER","DIAL PLATE","MESSAGE","CONTACT"],
                ["UNLOCK SCREEN","DESKTOP ICONS","OTHER","DIAL PLATE","MESSAGE","CONTACT"],
                ["UNLOCK SCREEN","DESKTOP ICONS","DIAL PLATE","MESSAGE","CONTACT","OTHER"],
                ["UNLOCK SCREEN","DESKTOP ICONS","DIAL PLATE","MESSAGE","CONTACT","OTHER"],
                ["UNLOCK SCREEN","DESKTOP ICONS","DIAL PLATE","MESSAGE","CONTACT","OTHER"],
                ["UNLOCK SCREEN","DESKTOP ICONS","DIAL PLATE","MESSAGE","CONTACT","OTHER"],
                ["UNLOCK SCREEN","DESKTOP ICONS","DIAL PLATE","MESSAGE","CONTACT","OTHER"],
                ["UNLOCK SCREEN","DESKTOP ICONS","DIAL PLATE","MESSAGE","CONTACT","OTHER"],
                ["UNLOCK SCREEN","DESKTOP ICONS","DIAL PLATE","MESSAGE","CONTACT","OTHER"]],//第四个十个
            [["UNLOCK SCREEN","DESKTOP ICONS","DIAL PLATE","MESSAGE","MESSAGE"],
                ["UNLOCK SCREEN","DESKTOP ICONS","DIAL PLATE","MESSAGE","MESSAGE"],
                ["UNLOCK SCREEN","DESKTOP ICONS","DIAL PLATE","MESSAGE","MESSAGE"],
                ["UNLOCK SCREEN","DESKTOP ICONS","DIAL PLATE","MESSAGE","MESSAGE"],
                ["UNLOCK SCREEN","DESKTOP ICONS","DIAL PLATE","MESSAGE","MESSAGE"],["UNLOCK SCREEN","DESKTOP ICONS","DIAL PLATE","MESSAGE","MESSAGE"],
                ["UNLOCK SCREEN","DESKTOP ICONS","DIAL PLATE","MESSAGE","MESSAGE"],["UNLOCK SCREEN","DESKTOP ICONS","DIAL PLATE","MESSAGE","CONTACT","OTHER"]]]];


    //----------------------------------------------------------------------------------------------------------------------------------------

    var _pic_case_page = [];
    var _color_path = [];
    var _title = [];
    var _small_title = [];
    var _index = GetRequest()["_index"];
    var _count_page =GetRequest()["_count_page"];
    var _this_top =GetRequest()["top"];
    var _this_case =GetRequest()["this_case"];

    if(_index ==0 || _index == 6 ||_index == 2){
        _pic_case_page = pic_path[_index][_count_page][_this_case];
//        console.log(_pic_case_page);
        _color_path = color_path[_index][_count_page][_this_case];
        _title = title[_index][_count_page][_this_case];
        _small_title = small_title[_index][_count_page][_this_case];
    }

    // console.log(pic_path[_index][_count_page]);
//    console.log(_pic_case_page.length);
    for(var i=0;i<_pic_case_page.length;i++){
        $(".pro_content").append("<div><div class='fl_left pro_text'><h3>"+_title[i]+"</h3><small>"+_small_title[i]+"</small><p>主题创意说明</p></div></div>");
        if(i==0){
            $(".pro_content>div").eq(0).addClass("first_div");
        }else if(i==_pic_case_page.length-1){
            $(".pro_content>div").eq(_pic_case_page.length-1).addClass("mar_bo_0");
        }
    }
    for(var k=0;k<_pic_case_page.length;k++){
        $(".pro_content>div").eq(k).css("background-image","url("+_pic_case_page[k]+")");
        $(".pro_content>div").eq(k).css("background-color",_color_path[k]);
    }

    function GetRequest() {
        var url = location.search; //获取url中"?"符后的字串
        var theRequest = new Object();
        if (url.indexOf("?") != -1) {
            var str = url.substr(1);
            strs = str.split("&");
            for(var i = 0; i < strs.length; i ++) {
                theRequest[strs[i].split("=")[0]]=unescape(strs[i].split("=")[1]);
            }
        }
        // console.log(theRequest);
        return theRequest;
    }
    //----------------------------------------------------------------------------------------------------------------
    //右边的导航
    var navigation = $('.pro_content>div').length;
    for(var i = 0; i<navigation ; i++){
        $(".navigation").append("<span></span>");
    }

    $(".pro_content>div").each(function (index,elem) {
        $(elem).attr('id',"proDiv"+index);
    });
    $(".navigation>span").click(function () {
        $(".navigation>span").css("background-color","#ffffff");
        $(this).css("background-color","#2e303a");
        $("html,body").animate({scrollTop:$("#proDiv"+$(this).index()).offset().top-80},500);
    });

    $(function () {
        $('.head-right li').hover(function () {
            $(this).find("a").css("color","#0093e9");
        },function () {
            if(!$(this).hasClass("active")){
                $(this).find("a").css("color","black");
            }
        });
    });

    $(window).scroll(function () {
        // console.log($(document).scrollTop());
        scrollTopIndex();
    });
    scrollTopIndex();
    function scrollTopIndex() {
        if($(document).scrollTop()>450){
            $(".navigation").css("right","20px");
            $(".pro_content>div").eq(0).removeClass("first_div");
            $(".navigation>span").css("background-color","#ffffff");
            $(".navigation>span").eq(Math.ceil(($(document).scrollTop()/($(".pro_content>div").eq(0).offset().top+230)))-1).css("background-color","#2e303a");
//            console.log(Math.ceil(($(document).scrollTop()/($(".pro_content>div").eq(0).offset().top+230)))-1);
        }else {
            $(".navigation").css("right","-20px");
            $(".pro_content>div").eq(0).addClass("first_div");
        }
        //
        // if($(document).scrollTop()>)

    }


    if (window.history && window.history.pushState) {

        $(window).on('popstate', function() {
            var hashLocation = location.hash;
            var hashSplit = hashLocation.split("#!/");
            var hashName = hashSplit[1];

            if (hashName !== '') {
                var hash = window.location.hash;
                if (hash === '') {
                    // alert('後退按鈕點擊');
                    if(_this_top){
                        window.location.href = "index.html?top="+_this_top+"&_count_page="+_count_page+"&_index="+_index;
                    }else {
                        window.location.href = "index.html";
                    }
                }
            }
        });

        window.history.pushState('forward', null, './#forward');
    }

});

